package com.pizza.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

import com.pizza.abstrait.AbstractAdresse;
import com.pizza.abstrait.AbstractClient;

/**
 * Class Client, entite du modele.
 *
 */
public class Client extends AbstractClient implements Serializable
{

	public Client(int id, String nom, String prenom, String mail, String motdepasse,
			Date dateInscription, Adresse adresseFacturation)
	{
		super();
		this.id = id;
		this.nom = nom;
		this.prenom = prenom;
		this.mail = mail;
		this.motdepasse = motdepasse;
		this.dateInscription = dateInscription;
		this.adresseFacturation = adresseFacturation;
		adressesLivraison = new ArrayList<AbstractAdresse>();
	}

	public Client(String nom, String prenom, String mail, String motdepasse,
			Date dateInscription, Adresse adresseFacturation)
	{
		super();
		this.nom = nom;
		this.prenom = prenom;
		this.mail = mail;
		this.motdepasse = motdepasse;
		this.dateInscription = dateInscription;
		this.adresseFacturation = adresseFacturation;
		adressesLivraison = new ArrayList<AbstractAdresse>();
	}

}
